home *** CD-ROM | disk | FTP | other *** search
/ Power DOS 1996 July / Power DOS - July 1996.iso / sound / c_labs / patches / q4patch.exe / QHI3R8.BAT < prev    next >
DOS Batch File  |  1995-08-21  |  2KB  |  79 lines

  1. @echo off
  2.  
  3. REM **************************************************
  4. REM     THIS IS THE BATCH FILE THAT SHIPS TO OUR USERS
  5. REM **************************************************
  6.  
  7. REM     Check for QHI in the current directory
  8. if exist QHI.EXE goto PATCH
  9.  
  10. REM     Check that a directory was specified
  11. if (%1) == ()  goto NEEDDIR
  12.  
  13. REM        Check to see if the windows directory was specified
  14. if (%2) == ()  goto NEEDDIR
  15. if NOT exist %2\nul goto NEEDDIR
  16.  
  17.  
  18. REM     Check in the current directory of the specified drive
  19. REM     This also works if the directory ends with a \
  20. if exist %1QHI.EXE goto DRVONLY
  21.  
  22. REM     Check for Quicken Home Inventory in the specified directory
  23. if exist %1\QHI.EXE goto PATCH
  24.  
  25. goto NOTFOUND
  26.  
  27.  
  28. REM     Apply the Patch file to QHI.  It will 
  29. REM     automatically detect the current version of QHI
  30. :PATCH
  31. patch  %1 qhi3r8.rtp
  32. goto CHKDLL
  33. :DRVONLY
  34. patch  %1. qhi3r8.rtp
  35.  
  36. REM     Check the DLL to make sure we override older versions.
  37. :CHKDLL
  38. if NOT exist %2\system\qconnect.dll goto COPYQCONNECT
  39. chkver %2\system\qconnect.dll qconnect.dll
  40. goto EXIT
  41. :COPYQCONNECT
  42. copy qconnect.dll %2\system\qconnect.dll
  43. goto EXIT
  44.  
  45. :NEEDDIR
  46. echo --------------------------------------------------------
  47. echo - Please include the name of the directory that contains
  48. echo - Quicken Home Inventory 3 for Windows and the
  49. echo - directory in which Windows is installed.  For example, 
  50. echo - you should type:
  51. echo - 
  52. echo -     QHI3R8 C:\QUICKENW C:\WINDOWS
  53. echo - 
  54. echo - For more information, TYPE the README file.
  55. echo --------------------------------------------------------
  56. goto EXIT
  57.  
  58. :NOTFOUND
  59. echo --------------------------------------------------------
  60. echo - Quicken Home Inventory 3 for Windows was not found in 
  61. echo - the directory:
  62. echo - 
  63. echo -     %1
  64. echo - 
  65. echo - Please check that you are correctly typing the name
  66. echo - of the directory in which you installed Quicken Home
  67. echo - Inventory. For example, you should type:
  68. echo - 
  69. echo -     QHI3R8 C:\QUICKENW C:\WINDOWS
  70. echo - 
  71. echo - For more information, TYPE the README file.
  72. echo --------------------------------------------------------
  73. goto EXIT
  74.  
  75.  
  76. :EXIT
  77.  
  78.  
  79.